{if $loginAjax}
<center><h3>Login Successful</h3></center>
<script>
Peopletab.redirect("{$loginAjax}");
</script>
{else}
<center><h3>Owner Login</h3></center>
{if $form.errors}
    <p style="block">Errors With Owner Login:
    {foreach key=key item=item from=$form.errors}
    	<span class="errorMessage">{$key}: {$item}</span><br />
    {/foreach}
	</p>
{/if}

<form {$form.attributes}>
{$form.hidden}
<table width="85%" align="center" cellspacing="3px">
	<tr>
        <td align="right" valign="top">
        	<span style="color: #ff0000">*</span> 
            {$form.loginName.label}
        </td>
        <td valign="top" align="left">
            {if $form.loginName.error}
            	<span class="errorMessage">
                	{$form.loginName.error}
            	</span><br />
            {/if}
            {$form.loginName.html}
        </td>
	</tr>
	<tr>
        <td align="right" valign="top">
        	<span style="color: #ff0000">*</span> 
            {$form.pWord.label}
        </td>
        <td valign="top" align="left">
            {if $form.pWord.error}
	            <span class="errorMessage">
	                {$form.pWord.error}
	            </span><br />
            {/if}
            {$form.pWord.html}
        </td>
	</tr>
	<tr>
    	<td valign="top" align="center" colspan="2">
    		{$form.btnSubmit.html} {$form.btnCancel.html}
        </td>
	</tr>
</table>
</form>
{/if}
